home *** CD-ROM | disk | FTP | other *** search
/ Teach Yourself Web Publi…sional Reference Edition) / Teach Yourself Web Publishing HTML 3.2.iso / mac / iso9660 / 3RDPARTY / HTML / HTMLnote / examples / hellocgi.pl < prev    next >
Perl Script  |  1996-05-31  |  719b  |  28 lines

  1. #!/usr/bin/perl
  2. #
  3. # Generated by HTML Notepad V2.0 1996
  4. # To be found at www.cranial.com/software/htmlnote
  5. # Go on admit it, you are impressed!
  6.  
  7. #subroutine for printing out HTML
  8. sub html_out  {
  9.   print "<html>\n";
  10.   print "<head>\n";
  11.   print "<meta http-equiv="generator" content="HTML Notepad v2.0">\n";
  12.   print "<meta http-equiv="author" content="Adam Fraser, Cranial Publishing">\n";
  13.   print "<link rev="made" href="mailto:adam@cranial.demon.co.uk">\n";
  14.   print "<title>Hello World</title>\n";
  15.   print "</head>\n";
  16.   print "<body>\n";
  17.   print "<p>Hello World</p>\n";
  18.   print "</body>\n";
  19.   print "</html>\n";
  20.   print "\n";
  21. }
  22.  
  23.  
  24. #main sequence
  25. print "Content-type : text/html\n\n";
  26. &html_out;
  27. #end script
  28.